<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>米行域名批量交易平台</title>
<include file="./Public/public/public.html" />
<style>
.mousactive {
	background-color: #FF6524;
	color: #fff;
}
</style>
<link href="{$app_path}{$static_path}/css/Home.css" rel="stylesheet"
	type="text/css" />
<script src="{$app_path}{$static_path}/js/home.js"></script>
<script src="{$app_path}{$static_path}/js/jquery.reveal.js"></script>
</head>
<body id="nv_member" class="pg_CURMODULE" onkeydown="if(event.keyCode==27) return false;">
<include file="./Public/public/top.html" />
<!--网页主体内容开始-->
<div id="wp" class="wp">
<link href="{$app_path}{$static_path}/css/style.css?v=1.1" rel="stylesheet" type="text/css">
<link href="{$app_path}{$static_path}/css/indexbanner2.css" rel="stylesheet" type="text/css">
<link href="{$app_path}{$static_path}/css/user-center.css" rel="stylesheet" type="text/css">
<link href="{$app_path}{$static_path}/css/reveal.css" rel="stylesheet" type="text/css">
<link href="{$app_path}{$static_path}/css/global.css" rel="stylesheet" type="text/css">
<div class="qtcontent menuhelp">
  <div class="intro">
    <div class="normalTitle">
      <h2>个人中心</h2>
    </div>
    <div class="Content2"> 
     <!--分类-->
      <ul id="menu"> 
        <li>
          <a class="nav-header active">
          <i class="icon-angle-right"></i>个人中心</a>
          <ul class="ckit" style="display:block;">
			<li class="selected"><a href="{:U('Center/index')}">个人信息</a></li>
			<li><a href="{:U('Center/wxgzhlist')}">公众号管理</a></li>
			<li><a href="{:U('Center/mky')}">MD5密钥</a></li>
			<li><a href="{:U('Center/wxreqlog')}">请求日志</a></li>
			<li><a href="{:U('Center/workorders')}">我的工单</a></li>
          </ul>
        </li>
      </ul>
     <!--内容-->
      <div class="content3" style="min-height:800px">
                <h3>个人信息</h3>
                <div class="cnt-tips">
                  <p>温馨提示：您目前绑定的公众号有{$ugzhCount}个,共调用获取采集参数KEY&nbsp;{$count}&nbsp;次</p>
                </div>   
                <div class="split-dot mt10 mb10"></div>
                <div class="row ">
                  <div class="key w55"><i class="fa fa-user"></i>会员ID：{$_SESSION['id']}</div>
                  <div class="value w30"> 
                  </div>
                  <div class="clr"> </div>
                </div>
                <div class="row">
                  <div class="key w55"><i class="fa fa-envelope-o"></i>开通的服务：
                  	          <if condition="$_SESSION['protype'] eq 0">
                  	          	暂未开通
                  	          </if>
                  	          <if condition="$_SESSION['protype'] eq 1">
                  	          	等待开通中
                  	          </if>
                  	           <if condition="$_SESSION['protype'] eq 2">
                  	          	暂未开通
                  	          </if>
                  	           <if condition="$_SESSION['protype'] eq 3">
                  	          	暂未开通
                  	          </if>
                  	           <if condition="$_SESSION['protype'] eq 4">
                  	          	暂未开通
                  	          </if>
                  	           <if condition="$_SESSION['protype'] eq 5">
                  	          	暂未开通
                  	          </if>
                  	           </div>
                  <div class="value w30">
                  <if condition="$_SESSION['protype'] eq 0">
                    <a action="bind" data-id="protype">申请开通</a> 
                  </if>
                  </div>
                  <div class="clr"> </div>
                </div>
                <div class="row ">
                  <div class="key w55"><i class="fa fa-credit-card-alt"></i>账号&nbsp;:&nbsp;&nbsp;&nbsp;{$_SESSION['account']}
                                         </div>
                  <div class="value w30">
		    	 	                    </div>
                  <div class="clr"> </div>
                </div>
                <div class="row ">
                  <div class="key w55"><i class="fa fa-transgender-alt"></i>公司：
				    		{$user.comp}
		    	 	                   </div>
                  <div class="value w30">
				    		<a action="bind" data-id="comp">修改</a>     
                  </div>
                  <div class="clr"> </div>
                </div>
                
                <div class="row ">
                  <div class="key w55"><i class="fa fa-credit-card-alt"></i>手机：
                  	                    {$user.mobile}</div>
                  <div class="value w30">
                  	<a action="bind" data-id="mobile">修改</a>
		    	 	                    </div>
                  <div class="clr"> </div>
                </div>    
                
                <div class="row">
                  <div class="key w55"><i class="fa fa-envelope-o"></i>邮箱：
                  	                   {$user.email} </div>
                  <div class="value w30">
                  	  <a action="bind" data-id="email">修改</a> 
                  </div>
                  <div class="clr"> </div>
                </div>
                            
                <div class="row">
                  <div class="key w55"><i class="fa fa-mobile-phone"></i>QQ：
				    		{$user.qq}                  </div>
                  <div class="value w30">
				    		<a action="bind" data-id="qq">修改</a> 
                  </div>
                  <div class="clr"> </div>
                </div>
      </div>
      <div class="clr"></div>
    </div>
  </div>
</div>

<div popup="bindDiv" class="reveal-modal medium">
  <a class="close-reveal-modal" action="closeModal">×</a>
    <h3 id="updaH3"></h3>
    <div>
    <form method="post" action="{:U('Center/update')}" id="updateUserInfo">
       	<input type="hidden" id="sendEmailUrl" value="/user/sendemailmes.html">
        <div class="form-row form-row-s mt20">
        <div class="input-name w30" id="fieldName"></div>
        <div class="input-box w65">
		<input class="input-s mt20" name="" maxlength="50" id="updateinput" > 
		</div>
        <div class="clr"></div>
    </div>   
    <div class="split-dot mb20 mt20 text-center"></div>
    <div class="form-row form-row-s">
        <a action="confirm" class=" button button-blue w45 fl" style="width:160px;">确认</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a action="cancel" class=" button button-gray w45 fr" style="width:160px;">取消</a>
        <div class="clr"></div>
    </div>
    </form></div>
</div>
<div class="reveal-modal-bg" style="display: none;"></div>

<script type="text/javascript">
 $(".nav-header").click(function(){
  $(".ckit").each(function(){
    $(this).slideUp('normal');
 }); 
   $(".nav-header").each(function(){
    $(this).removeClass('active');
 }); 
  $(this).addClass("active");
  $(this).next(".ckit").slideDown('normal');
});
 $(".selected").parent(".ckit").slideDown(0);
  $(".selected").parent(".ckit").prev(".nav-header").addClass("active");
  
  //点击弹出绑定邮箱
  $('[action="bind"]').click(function(){
	 var cz=$(this).attr("data-id");
	 if(cz=='comp'){
		 $("#updaH3").text("修改公司");
		 $("#fieldName").text("公司名称");
	 }else if(cz=='mobile'){
		 $("#updaH3").text("修改手机号码");
		 $("#fieldName").text("手机号码");
	 }else if(cz=='email'){
		 $("#updaH3").text("修改Email");
		 $("#fieldName").text("Email");
	 }else if(cz=='qq'){
		 $("#updaH3").text("修改QQ");
		 $("#fieldName").text("QQ");
	 }
	 $("#updateinput").attr("name",cz);
    $('[popup="bindDiv"]').reveal();
  });   
  $('[action="confirm"]').click(function(){
	  if(($("#updateinput").val()).length>0){
		  $("#updateUserInfo").submit();
	  }
  });
</script>
</div>
<include file="./Public/public/footer.html" />
</body>
</html>